| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import { |
||
| 5 | var route = function(req, res) { |
||
| 6 | var result |
||
| 7 | if (abeExtend.process('generate-posts', [''])) { |
||
| 8 | result = { |
||
| 9 | success: 1, |
||
| 10 | msg: 'generate-posts is running' |
||
| 11 | } |
||
| 12 | }else { |
||
| 13 | result = { |
||
| 14 | success: 0, |
||
| 15 | msg: 'cannot run process generate-posts, because an other one is already running' |
||
| 16 | } |
||
| 17 | } |
||
| 18 | res.set('Content-Type', 'application/json') |
||
| 19 | res.send(JSON.stringify(result)) |
||
| 20 | } |
||
| 21 | |||
| 22 | export default route |